package cn.whb.hrm.feign;

import cn.whb.hrm.doc.CourseDoc;
import cn.whb.hrm.query.CourseDocQuery;
import cn.whb.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "es-server",fallbackFactory = CourseDocFallbackFactory.class)
@RequestMapping("/search")
public interface CourseDocFeignClient {

    @PostMapping("/courseOnline")
    AjaxResult courseOnline(@RequestBody CourseDoc doc);
    @GetMapping("/courseOffline/{id}")
    AjaxResult courseOffLine(@PathVariable("id") Long id);
    @PostMapping("/queryCourses")
    AjaxResult queryCourses(@RequestBody CourseDocQuery docQuery);
}
